!!! 5
%html
  %head
    %meta{:charset=>"UTF-8"}/
    %title
      玻璃拟态
    :css
      .demo{
        width: 100vw;
        height: 100vh;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(to right, #4158d0, #ffcc70, #c850c0)
      }

      .text{
        font-size:100px;
        font-weight:bold;
        background: linear-gradient(to right, #ffcc70, #4158d0, #c850c0);
        color: transparent;
        -webkit-background-clip: text;}

      .card {
        position: absolute;
        width:600px;
        height: 350px;
        border-radius:20px;
        background: linear-gradient(to right bottom, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
        backdrop-filter: blur(8px);
        box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.8);
        border-left: 1px solid rgba(255,255,255,0.8);
      }

      .card-bottom {
        position: absolute;
        width: 600px;
        height: 150px;
        background: linear-gradient(to right bottom, rgba(50,255,255,0.2), rgba(255,50,255,0.05));
        backdrop-filter: blur(8px);
        box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        position: absolute;
        top: 200px;
      }

      .greety {
        font-size:20px;
        font-weight: bold;
        position: absolute;
        left: 100px;
        top: 50px;
        color: whitesmoke;
        opacity: 0.3;
      }

      .trapezoid{ 
        transform: rotate(45deg) translate(329px,-262px);
        border-bottom: 40px solid green;
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        width: 150px;
        opacity: 0.2;
        backdrop-filter: blur(8px);
      }
  %body
    .demo
      .text
        岁月的车轮碾过了日日夜夜,春秋冬夏;流年的轮回送走了晨起暮霞,似水年华;青春的步履渐渐苍老了不再年轻的容瑕。
      .card
        %span.greety 你若安好便是晴天
        .trapezoid
        .card-bottom